import {
	createRouter,
	createWebHistory,
	createWebHashHistory
} from 'vue-router';
import Test from '../views/test/index.vue'

import Index from '../views/user/index/Index.vue';
import Login from '../views/user/login/Login.vue';
import Article from '../views/user/article/Article.vue';
import Message from '../views/user/message/Message.vue';
import DisArticle from '../views/user/article/disarticle/DisArticle.vue';


import AdminLogin from '../views/admin/login/AdminLogin.vue';
import Navigation from '../views/admin/navigation/Navigation.vue';

const routes = [
	{
		path: '/',
		component: Index
	},
	{
		path: '/article',
		component: Article
	},
	{
		path: '/message',
		component: Message
	},
	{
		path: '/login',
		component: Login
	},
	{
		path: '/disarticle',
		component: DisArticle
	},
	
	
	
	{
		path: '/shang',
		component: AdminLogin,
		// children: [{
		// 	path: '/shang/navigation',
		// 	name: 'navigation',
		// 	component: Navigation,
		// }]
	},
	{
		path: '/navigation',
		component: Navigation
	},
	{
		path: '/test',
		component: Test
	}
];

const router = createRouter({
	history: createWebHashHistory(),
	routes
});

export default router;